package com.fr.report.script.core.parser;

public class ColumnRowLocation
{
  public static final ColumnRowLocation ALL = new ColumnRowLocation(null);
  private LocationDim[] dims;

  public ColumnRowLocation(LocationDim[] paramArrayOfLocationDim)
  {
    this.dims = paramArrayOfLocationDim;
  }

  public LocationDim[] getDims()
  {
    return this.dims;
  }

  public String toString()
  {
    if (this == ALL)
      return "!0";
    StringBuffer localStringBuffer = new StringBuffer();
    for (int i = 0; i < this.dims.length; ++i)
    {
      if (i > 0)
        localStringBuffer.append(",");
      localStringBuffer.append(this.dims[i]);
    }
    return localStringBuffer.toString();
  }

  public void changeColumnRow(int paramInt1, int paramInt2, int paramInt3, int paramInt4)
  {
    int i;
    if (this != ALL)
      for (i = 0; i < this.dims.length; ++i)
        this.dims[i].changeColumnRow(paramInt1, paramInt2, paramInt3, paramInt4);
  }
}